package com.giw.project.movies;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.MalformedURLException;
import java.net.URL;

import org.jsoup.*;
import org.jsoup.nodes.Document;

public class Jsoup_test {
	public static void main(String[] args) throws IOException {
		String html = "<html><head><title>First parse</title></head>"
			  + "<body><p>Parsed HTML into a doc.</p></body></html>";
		
		URL url = new URL("http://www.comingsoon.it/Film/Database/?range=3&titoloFilm=&genere=&regiaFilm=&anno=2000&castFilm=&nazionalita=");
		InputStream in = url.openConnection().getInputStream();
		Reader reader = new InputStreamReader(in);
		
		
		Document doc = Jsoup.parse(html);
		System.out.println(doc.toString());	
	}

}
